home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / src / linux-headers-2.6.28-15 / arch / cris / include / asm / byteorder.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-12-24  |  549 b   |  28 lines

  1. #ifndef _CRIS_BYTEORDER_H
  2. #define _CRIS_BYTEORDER_H
  3.  
  4. #ifdef __GNUC__
  5.  
  6. #ifdef __KERNEL__
  7. #include <arch/byteorder.h>
  8.  
  9. /* defines are necessary because the other files detect the presence
  10.  * of a defined __arch_swab32, not an inline
  11.  */
  12. #define __arch__swab32(x) ___arch__swab32(x)
  13. #define __arch__swab16(x) ___arch__swab16(x)
  14. #endif /* __KERNEL__ */
  15.  
  16. #if !defined(__STRICT_ANSI__) || defined(__KERNEL__)
  17. #  define __BYTEORDER_HAS_U64__
  18. #  define __SWAB_64_THRU_32__
  19. #endif
  20.  
  21. #endif /* __GNUC__ */
  22.  
  23. #include <linux/byteorder/little_endian.h>
  24.  
  25. #endif
  26.  
  27.  
  28.